package com.charging.mapper;

import com.charging.bean.Advertisement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.charging.bean.Site;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 小程序广告 Mapper 接口
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-20
 */
public interface AdvertisementMapper extends BaseMapper<Advertisement> {

    /**
     * @param map
     * @return 后台查询
     */
    List<Advertisement> selectMyPage(@Param("param") Map map);
    Integer  countMyPage (@Param("param")Map map);

    /**
     * @return 小程序查询广告
     */
    List<Advertisement> selectList();

}
